<?=
get_toolbar(array('accion' => 'custom',
    'botones' => '<a href="' . site_url(get_uri_string()) . '" class="btn btn-warning color-blanco">' . ulang('ver_listado_anuncios') . '</a>'));
?>
<?= get_alert(isset($success) ? $success : null, isset($error) ? $error : null); ?>
<div class="row">
    <div class="col-md-12">
        <div class="portlet box yellow" id="form_wizard_1">
            <div class="portlet-title">
                <div class="caption">
                    <i class="icon-reorder"></i> <?= ulang('nuevo_anuncio') ?> - <span class="step-title"><?= ulang('paso') ?> 4 <?= lang('de') ?> 4</span>
                </div>
            </div>
            <div class="portlet-body form">
                <form class="form-horizontal" action="<?= site_url($this->uri->uri_string()) ?>" id="form_mantenimiento" method="post">
                    <input type="hidden" name="pro_id" value="<?= isset($query) ? isset($query['pro_id']) ? $query['pro_id'] : ''  : '' ?>"/>
                    <div class="form-wizard">
                        <div class="form-body">
                            <?= $wizard ?>
                            <div id="bar" class="progress progress-striped" role="progressbar">
                                <div class="progress-bar progress-bar-warning" style="width: 100%;"></div>
                            </div>
                            <div class="tab-pane active" id="tab1">
                                <div class="form-group">
                                    <label class="control-label col-md-4">* <?= ulang('pro_envio_mrw') ?></label>
                                    <div class="col-md-5">
                                        <div class="make-switch switch-large" data-on="success" data-on-label="<?=ulang('si')?>" data-off-label="<?=ulang('no')?>">
                                            <input type="checkbox" value="<?= isset($query) ? isset($query['pro_envio_mrw']) ? $query['pro_envio_mrw'] : '' : '' ?>" 
                                               class="toggle form-control" name="pro_envio_mrw"/>
                                        </div>
                                        <span class="help-block"><?= ulang('help_pro_titulo') ?></span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-md-4"></div>
                                    <div class="col-md-5">
                                        <button type="submit" id="boton_grabar" class="btn btn-info"><?= ulang('grabar_y_pasar_a_la_siguiente_pantalla') ?></button>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>